/**
 * 
 */
package lastfmbaseball.core;

import java.util.*;

/**
 * @author DanBress
 * 
 */
public class Inning
{
	private int number;
	private Map<InningType, HalfInning> halfs = new Hashtable<InningType, HalfInning>(
			2);

	public Inning(int number)
	{
		this.number = number;
	}

	public void addHalf(InningType type, HalfInning halfInning)
	{
		halfs.put(type, halfInning);
	}

	public HalfInning getHalf(InningType type)
	{
		return halfs.get(type);
	}

	public int getInningNumber()
	{
		return number;
	}

	public String toString()
	{
		return "" + number;
	}
}
